/*
 * @Descripttion: 描述
 * @version: 1.0
 * @Author: 自由如风
 * @Date: 2021-04-27 14:40:05
 * @LastEditors: 自由如风
 * @LastEditTime: 2021-04-27 16:32:20
 */

const { Sequelize } = require('sequelize')
const initModels = require("../models/init-models");

// 方法 2: 分别传递参数 (其它数据库)
const DB = new Sequelize('infirmary2', 'infirmary2', 'infirmary2', {
    host: 'localhost',
    dialect: 'mysql'
});

initModels(DB);

module.exports = DB;